package org.example.service;

import org.example.param.CategoryAddParam;
import org.example.param.CategoryFuzzyParam;
import org.example.param.CategoryUpdateParam;
import org.example.utils.Result;

public interface CategoryService {
    Result all();

    Result delete(Long id);

    Result add(CategoryAddParam categoryAddParam);

    Result findCategoryByName(String categoryName);

    Result findCategoryById(Long id);

    Result update(CategoryUpdateParam categoryUpdateParam);

    Result fuzzy(CategoryFuzzyParam categoryFuzzyParam);

    Result hot(Integer limit);
}
